Skip to content

Conversation

@swolchok
Copy link
Contributor

@swolchok swolchok commented Jul 2, 2025

I think I got this wrong in #11975 -- the compute_dtype is the one type that is NOT related to selective build.

[ghstack-poisoned]
@swolchok
Copy link
Contributor Author

swolchok commented Jul 2, 2025

@swolchok swolchok requested a review from manuelcandales as a code owner July 2, 2025 23:36
@pytorch-bot
Copy link

pytorch-bot bot commented Jul 2, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/12183

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure, 1 Cancelled Job, 1 Unrelated Failure

As of commit 71d32cc with merge base 02454eb (image):

NEW FAILURE - The following job has failed:

CANCELLED JOB - The following job was cancelled. Please retry:

BROKEN TRUNK - The following job failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

This comment was automatically generated by Dr. CI and updates every 15 minutes.

swolchok added a commit that referenced this pull request Jul 2, 2025
I think I got this wrong in #11975 -- the compute_dtype is the one type that is NOT related to selective build.


ghstack-source-id: db55c4a
ghstack-comment-id: 3029669540
Pull-Request-resolved: #12183
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jul 2, 2025
@swolchok swolchok requested review from kimishpatel and lucylq July 2, 2025 23:42
@swolchok
Copy link
Contributor Author

swolchok commented Jul 2, 2025

  • Kimish and Lucy because we just discussed this in person

Comment on lines +322 to +325
constexpr ScalarType out_specialized_scalar_type =
specialized_output_scalar_type<CTYPE_COMPUTE>(out_dtypes);
if constexpr (should_include_kernel_dtype(
op_name, out_specialized_scalar_type)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use of should_include_kernel_dtype is behind a macro, should we not continue with that convention?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ET_INTERNAL_CHECK_SELECTIVE_BUILD depends implicitly on et_switch_name being defined, which doesn't make sense here, and should_include_kernel_dtype is a perfectly good constexpr function so I don't see why we shouldn't call it

@swolchok
Copy link
Contributor Author

swolchok commented Jul 8, 2025

unittest-editable failure looks like a known flake. merging.

@swolchok swolchok merged commit a7db36b into main Jul 8, 2025
94 of 98 checks passed
@swolchok swolchok deleted the gh/swolchok/494/head branch July 8, 2025 16:36
Tanish2101 pushed a commit to Tanish2101/executorch that referenced this pull request Jul 9, 2025
I think I got this wrong in pytorch#11975 -- the compute_dtype is the one type
that is NOT related to selective build.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. release notes: none Do not include this in the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants